package city.spring.modules.work.service;

import city.spring.modules.work.entity.WorkReplaceApplyEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * Service：值班替班申请表
 *
 * @author 侯坤林
 * @date 2020-06-28 10:24:34
 */
public interface WorkReplaceApplyService extends IService<WorkReplaceApplyEntity> {
    String CACHE_NAME = "work_replace_apply";

    /**
     * 业务处理：保存一个 <strong>值班替班申请表</strong>
     *
     * @param entity 值班替班申请表
     */
    void saveWorkReplaceApply(WorkReplaceApplyEntity entity);

    /**
     * 业务处理：修改一个 <strong>值班替班申请表</strong>
     *
     * @param entity 值班替班申请表
     */
    void updateWorkReplaceApply(WorkReplaceApplyEntity entity);

    /**
     * 审核申请
     * <p>
     * 仅仅需要 {@link WorkReplaceApplyEntity#id} 、{@link WorkReplaceApplyEntity#result} 、 {@link WorkReplaceApplyEntity#review} 三个字段信息
     * </p>
     *
     * @param entity 值班替班申请表
     */
    void auditWorkReplaceApply(WorkReplaceApplyEntity entity);

    /**
     * 业务处理：删除一个 <strong>值班替班申请表</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteWorkReplaceApply(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>值班替班申请表</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteWorkReplaceApply(List<String> primaryKeys);
}